<?php

class CalculatorAction extends Action {

    /**
     * 违章查询
     */
    public function BreakRules(){
        $this->display();
    }

    /**
     * 全款计算器
     */
    public function PaidInFull($carprice=0){

        $this->assign("carprice",$carprice);
        $this->display();
    }

    /**
     * 全款计算器
     */
    public function PaidInFull1(){

        $this->display();
    }

    /**
     * 贷款计算器
     */
    public function Loan($carprice = 0,$shoufu ='30%',$year = 2,$loanRate=6.4){

        $this->assign("shoufu",$shoufu);
        $this->assign("year",$year);
        $this->assign("loanRate",$loanRate);
        $this->assign("carprice",$carprice);
        $this->display();
    }

    /**
     * 贷款计算器
     */
    public function Loan1(){

        $this->display();
    }

    /**
     * 保养计算器
     */
    public function Insurance($carprice = 0){
        $this->assign("carprice",$carprice);
        $this->display();
    }

    /**
     * 保养计算器
     */
    public function Insurance1(){

        $this->display();
    }


}